export default (store) => (next) => (action) => {
  console.log('thunk');
  if (typeof action === 'function') {
    action(store);
  } else {
    next(action);
  }
}